#include <stdio.h>

void convertion()
{
    int i=12345;
	printf("%3d\n",i);
	
	i=123;
	printf("%5d\n",i);

	printf("%-5dnihao\n",i);

	float x;
	i = 40; x = 839.21f;
	printf("|%d|%5d|%-5d|%5.3d|%.3d|\n", i, i, i, i, i);
	
	printf("|%10.3f|%10.6f|%10.0f|%10.4f|\n", x, x, x, x);
	printf("|%10.3e|%10.6e|%10.0e|%10.4e|\n", x, x, x, x);
	printf("|%10.3g|%10.6g|%10.0g|%10.4g|\n", x, x, x, x);
}

void escapeSeq()
{
	printf("\" \n");
	printf("\\ \n");
	printf("Item\tUnit\tPurchase\n\tPrice\tDate\n");
	printf("a bell \a \n");
	printf("a back\b\b\bsequence  \n");
}

int main()
{
	escapeSeq();
	return 0;
}